import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
	state: {
		uname: null, //登录的用户名
	},
	getters: {},
	mutations: {
		updateUname(state, uname) {
			state.uname = uname
		  },
	},
	actions: {},
	modules: {},
});
